#ifndef MYCANVAS_H
#define MYCANVAS_H

#include <QApplication>
#include <QFrame>
#include <iostream>
#include <ctime>
#include <cmath>
#include <vector>
#include "QSFMLCanvas.hpp"
#include "Territoire.hpp"

#define TAB_LENGTH 30
#define TAB_HEIGHT 30
#define TERR 30
#define PORTEE 4000

class MyCanvas : public QSFMLCanvas
{
public :
    MyCanvas(QWidget* Parent, const QPoint& Position, const QSize& Size);

private :
    void onInit();
    void onUpdate();

    bool isIn();

    sf::Clock   clock;

    Territoire pays[TERR];
};

#endif // MYCANVAS_H
